package android.meetingatsb.common

import android.os.Parcel
import android.os.Parcelable

class Dating(var type: String, var detail: String, var status: String) : Parcelable{
    constructor(parcel: Parcel) : this(
            parcel.readString(),
            parcel.readString(),
            parcel.readString()) {
    }

    override fun describeContents(): Int {
        return 0
    }

    override fun writeToParcel(dest: Parcel?, p1: Int) {
        dest?.writeString(type)
        dest?.writeString(detail)
        dest?.writeString(status)
    }

    companion object CREATOR : Parcelable.Creator<Dating> {
        override fun createFromParcel(parcel: Parcel): Dating {
            return Dating(parcel)
        }

        override fun newArray(size: Int): Array<Dating?> {
            return arrayOfNulls(size)
        }
    }
}